package com.itheima.overload;

public class MothodOverLoadDemo1 {
    public static void main(String[] args) {
        //认识方法重载并掌握应用场景
        show();
        show(1);
        show("hello");
        show((int) 1.0);

    }
    public static void show(){
        System.out.println("msg");
    }
    public static void show(int num){
        System.out.println("num = " + num);
    }

    static void show(String msg){
        System.out.println("msg = " + msg);
    }

    double show(double n){
        return n;
    }
}
